import scrapy


class CarSpider(scrapy.Spider):
    name = "car"
    allowed_domains = ["www.autohome.com.cn/price/brandid_15"]
    # 如果请求的接口是html结尾后面不允许加/
    start_urls = ["https://www.autohome.com.cn/price/brandid_15"]

    def parse(self, response):
        name_lis='//div[@class="infinite-scroll-component"]//a/text()'
        print(name_lis)
